import 'package:flustars_flutter3/flustars_flutter3.dart';
import 'package:flutter/material.dart';
import 'package:ls_work/a_elder/models/elder_entity.dart';
import 'package:ls_work/res/resources.dart';
import 'package:ls_work/widgets/load_image.dart';

class ElderInfoTitleCell extends StatelessWidget {
  final ElderInfo elderInfo;
  ElderInfoTitleCell({Key? key,required this.elderInfo});
  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil.getScreenW(context),
      padding: EdgeInsets.fromLTRB(12, 15, 5, 0),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          // CircleAvatar(
          //   backgroundColor: Colours.bg_gray,
          //   radius: 20,
          //   backgroundImage: NetworkImage(iconUrl),
          // ),
          LoadAssetImage('default/d_mrtx'),
          SizedBox(
            width: 13,
          ),
          Column(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              Text(
                '${elderInfo.name ?? ''}',
                style: TextStyles.textBoldDark14,
              ),
              Gaps.vGap5,
              Text(
                '${elderInfo.buildingNo ?? ''}  ${elderInfo.floorNo ?? ''}  ${elderInfo.roomNo ?? ''}',
                style: TextStyles.textGray12,
              ),
            ],
          ),
        ],
      ),

      // Row(
      //   mainAxisAlignment: MainAxisAlignment.start,
      //   crossAxisAlignment: CrossAxisAlignment.start,
      //   children: <Widget>[
      //     CircleAvatar(
      //       backgroundColor: Colours.bg_gray,
      //       radius: 20,
      //       backgroundImage: NetworkImage(iconUrl),
      //     ),
      // Column(
      //   mainAxisAlignment: MainAxisAlignment.start,
      //   crossAxisAlignment: CrossAxisAlignment.center,
      //   children: <Widget>[
      //     CircleAvatar(
      //       backgroundColor: Colours.bg_gray,
      //       radius: 20,
      //       backgroundImage: NetworkImage(iconUrl),
      //     ),
      //     SizedBox(
      //       height: 5,
      //     ),
      // Container(
      //     color: Colors.green[200],
      //     width: 30,
      //     height: 15,
      //     alignment: Alignment.center,
      //     child: Text(
      //       'C级',
      //       style: TextStyle(fontSize: 10, color: Colors.white),
      //       textAlign: TextAlign.center,
      //     ))
      // ],
      // ),
      // SizedBox(
      //   width: 13,
      // ),
      // Column(
      //   mainAxisAlignment: MainAxisAlignment.center,
      //   crossAxisAlignment: CrossAxisAlignment.start,
      //   children: <Widget>[
      //     Text(
      //       '状态：已入住',
      //       style: TextStyles.textDark14,
      //     ),
      //     Text(
      //       '护理3级  五马渡  2#-09室',
      //       style: TextStyles.textGray12,
      //     ),
      // Container(
      //   width: ScreenUtil.getScreenW(context) - 70,
      //   child: Row(
      //     mainAxisAlignment: MainAxisAlignment.spaceBetween,
      //     crossAxisAlignment: CrossAxisAlignment.center,
      //     children: <Widget>[],
      //   ),
      // ),
      // SizedBox(
      //   height: 5,
      // ),
      // Container(
      //   width: ScreenUtil.getScreenW(context) - 70,
      //   child: Row(
      //     mainAxisAlignment: MainAxisAlignment.spaceBetween,
      //     crossAxisAlignment: CrossAxisAlignment.center,
      //     children: <Widget>[
      //       Text(
      //         '男  74',
      //         style: TextStyles.textGray14,
      //       ),
      //     ],
      //   ),
      // ),
      // SizedBox(
      //   height: 5,
      // ),
      // Text(
      //   '最后联系时间：2019-11-16  11：09',
      //   style: TextStyles.textGray14,
      // ),
      //   ],
      // ),
      //   ],
      // ),
      // SizedBox(
      //   height: 15,
      // ),
      // Container(
      //   height: 1,
      //   color: Colours.bg_gray,
      //   width: double.infinity,
      // )
      // ],
      // ),
    );
  }
}
